#!/usr/bin/env python
# coding=utf-8
"""
登录控制
"""
from flask import render_template, Blueprint, session

nestlogin = Blueprint('nest', __name__)


@nestlogin.route('/mynest')
def index():
    if 'token' in session:
        return render_template('index.html')
    else:
        return render_template('login/login.html')
